//基础公共url
var baseUrl = '.'

//表格组件库
export default {
  "label": '表格',
  "icon": 'icon-table',
  "children": [{
    "label": '表格',
    "option": {
      "title": "表格",
      "name": "表格",
      "icon": 'icon-table',
      "img": require('@/assets/table.png'),
      "top": 0,
      "left": 0,
      "dataType": 0,
      dataMethod: 'get',
      time: 5000,
      url: baseUrl + '/table.json',
      "data": [{
        "type1": '数据1',
        "type2": '数据1'
      }, {
        "type1": '数据2',
        "type2": '数据2'
      }, {
        "type1": '数据3',
        "type2": '数据3'
      }, {
        "type1": '数据4',
        "type2": '数据4'
      }],
      "dataFormatter": "",
      "stylesFormatter": "",
      "component": {
        "width": 500,
        "height": 200,
        "name": "table",
        "prop": "table",
      },
      "option": {
        "columnShow": true,
        "columnViews": true,
        "headerBackground": "rgba(30, 144, 255, 1)",
        "headerColor": "rgba(241, 242, 245, 1)",
        "headerTextAlign": "center",
        "headerFontSize": 18,
        "headerFontWeight": 'normal',
        "bodyBackground": "rgba(0, 0, 0, 0.01)",
        "bodyColor": "rgba(0, 0, 0, 1)",
        "borderColor": "rgba(51, 65, 107, 1)",
        "bodyTextAlign": "center",
        "orderRadius": 20,
        "orderColor": '#eee',
        "orderColorList": [],
        "column": [{
          "label": "车牌号",
          "prop": "type1"
        }, {
          "label": "驾驶员",
          "prop": "type2"
        }, {
          "label": "里程",
          "prop": "type3"
        }, {
          "label": "油耗",
          "prop": "type4"
        }],
        "align": "center",
        "headerAlign": "center",
        "header": false,
        "scroll": true,
        "scrollTime": 10000,
        "fontSize": 15,
        "fontWeight": 'normal',
        "count": 4,
        "nthColor": "rgba(127, 185, 242, 1)",
        "othColor": "rgba(164, 205, 244, 1)",
        "index": true,
        "scrollCount": 1
      }
    }
  }, {
    label: '选项卡',
    option: {
      "title": "选项卡",
      "name": "选项卡",
      "icon": "icon-tabs",
      "img": require('@/assets/tabs.png'),
      "child": {
        "index": [],
        "paramName": ""
      },
      "dataFormatter": "",
      "stylesFormatter": "",
      "dataType": 0,
      "data": [
        {
          "label": "选项卡1",
          "value": "1"
        },
        {
          "label": "选项卡2",
          "value": "2"
        }
      ],
      "component": {
        "width": 356.9128919860628,
        "height": 46.209059233449096,
        "name": "tabs",
        "prop": "tabs"
      },
      "option": {
        "type": 'tabs',
        "color": "#eee",
        "empColor": "#4dffff",
        "fontSize": 20,
        "split": 8,
        "empBackgroundImage": "/img/banner/banner5.png",
        "backgroundImage": "/img/banner/banner4.png"
      },
    },
  },{
    "label": '表格Plus',
    "option": {
      "title": "表格Plus",
      "name": "表格Plus",
      "icon": 'icon-table',
      "img": require('@/assets/table.png'),
      "top": 0,
      "left": 0,
      "dataType": 0,
      dataMethod: 'get',
      time: 5000,
      url: baseUrl + '/table.json',
      "data": [{
        "type1": '数据1',
        "type2": '数据1',
        "type3": '数据1',
        "type4": '数据1'
      }, {
        "type1": '数据2',
        "type2": '数据2',
        "type3": '数据2',
        "type4": '数据2'
      }, {
        "type1": '数据3',
        "type2": '数据3',
        "type3": '数据3',
        "type4": '数据3'
      }, {
        "type1": '数据4',
        "type2": '数据4',
        "type3": '数据4',
        "type4": '数据4'
      }, {
        "type1": '数据5',
        "type2": '数据5',
        "type3": '数据5',
        "type4": '数据5'
      }, {
        "type1": '数据6',
        "type2": '数据6',
        "type3": '数据6',
        "type4": '数据6'
      }, {
        "type1": '数据7',
        "type2": '数据7',
        "type3": '数据7',
        "type4": '数据7'
      }, {
        "type1": '数据8',
        "type2": '数据8',
        "type3": '数据8',
        "type4": '超长数据8，超长数据8，超长数据8，超长数据8，超长数据8'
      }],
      "dataFormatter": "",
      "stylesFormatter": "",
      "component": {
        "width": 500,
        "height": 200,
        "name": "tablePlus",
        "prop": "tablePlus",
      },
      "option": {
        isHeader: true,
        textAlign: 'center',
        headColor: 'rgba(227, 140, 35, 1)',
        headBackColor: 'rgba(118, 96, 96, 0.45)',
        bodyColor: 'rgba(97, 167, 36, 1)',
        oldColor: 'rgba(40, 107, 179, 0.51)',
        eventColor: 'rgba(188, 62, 200, 0.25)',
        "column": [{
          "label": "车牌号",
          "prop": "type1",
          "width": '20%'
        }, {
          "label": "驾驶员",
          "prop": "type2",
          "width": '20%'
        }, {
          "label": "里程",
          "prop": "type3",
          "width": '30%'
        }, {
          "label": "油耗",
          "prop": "type4",
          "width": '30%'
        }],
        "align": "center",
        rowHeight: 30,
        isLine: true,
        borderWidth: 1,
        vis: 5,
        "isRoll": true,
        scroll: 5,
        "effect": "topLoop",
        interTime: 5000,
        delayTime: 4000,

      }
    }
  }]
}
